package com.flea.hclv.service;

import com.alibaba.fastjson.JSONObject;
import com.flea.hclv.model.entity.HDriver;
import com.flea.hclv.model.entity.HDriverLicense;
import com.flea.hclv.model.entity.HResourceRelation;
import com.flea.hclv.util.ServerResponse;
import com.flea.system.bean.FleaPage;
import com.flea.system.entity.OrgDept;

import java.util.List;

public interface HDriverService {
    ServerResponse<String> saveOrUpdate(String userId, OrgDept currentUserDept, HDriver driver, List<HResourceRelation> hResourceRelations, HDriverLicense hDriverLicense);

    ServerResponse<FleaPage<HDriver>> selectAll(int curPage, int pageSize, String name, String type);

    ServerResponse<String> deleteByIds(String userId, List<String> idList);

    ServerResponse<JSONObject> selectLicenseAndImage(String driverId);

    ServerResponse<FleaPage<HDriver>> selectByDeptId(OrgDept currentUserDept, int curPage, int pageSize, String name, String type);
}
